import request from "@/utils/request";

// 查询重点单位列表
export function getinstitutionlist(query, data) {
  return request({
    url: "/system/institution/list",
    method: "post",
    params: query,
    data,
  });
}

// 添加重点单位列表
export function addinstitution(data) {
  return request({
    url: "/system/institution/add",
    method: "post",
    data,
  });
}

// 编辑重点单位列表
export function editinstitution(data) {
  return request({
    url: "/system/institution/edit",
    method: "post",
    data,
  });
}

// 重点单位列表详情
export function getinstitutiondetail(institutionId) {
  return request({
    url: `/system/institution/${institutionId}`,
    method: "get",
  });
}

// 删除重点单位列表
export function delinstitution(institutionId) {
  return request({
    url: `/system/institution/remove/${institutionId}`,
    method: "get",
  });
}

// 检查单位
export function selectDeptListByUser(data) {
  return request({
    url: `/system/dept/selectDeptListByUser`,
    method: "post",
    data,
  });
}

// 安全指数
export function checkInRecordCount(data) {
  return request({
    url: `/system/statistics/getInstitutionCheckCount`,
    method: "post",
    data,
  });
}
